package com.ems.mapper;

import com.ems.entity.TMachine;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ems.entity.TPressureCurve;
import com.ems.entity.TTemperatureCurve;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author CSC
 * @since 2022-06-28
 */
@Mapper
public interface TMachineMapper extends BaseMapper<TMachine> {
List<TMachine> getStateById(@Param("id") Integer id);
List<TTemperatureCurve> getTempList();
List<TPressureCurve> getPressureList();
    void updateStatus(TMachine tMachine);

    void repair(TMachine tMachine);
    //权限验证
    int permit(Integer id);
}
